package com.xbongbong.pro.statistic.manager.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.statistic.result.pojo.dto.DiyResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/4/16 16:28
 * @since v1.0
 */
@FeignClient(name = "pro-web-ck",contextId = "diyResultFeignClient")
public interface DiyResultFeignClient {
    /**
     * 通过ClickHouse获取结果
     * @param diyResultDTO
     * @return
     */
    @RequestMapping(value = "/pro/v1/ck/agg/result", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<Object> getCkResult(@RequestBody DiyResultDTO diyResultDTO);
}
